<table>
    <thead>
        <tr>
            <th><g:message code="bomDetail.serialNumber.label" default="Serial Number" /></th>
            <th><g:message code="bomDetail.product.label" default="Detail Product" /></th>
            <th><g:message code="product.name.label" default="Product Name" /></th>
            <th><g:message code="product.standard.label" default="Product Standard" /></th>
            <th><g:message code="bomDetail.dosage.label" default="Dosage" /></th>
            <th><g:message code="bomDetail.dateCreated.label" default="Date Created" /></th>
            <th><g:message code="bomDetail.lastUpdated.label" default="Last Updated" /></th>
        </tr>
    </thead>
    <tbody>
    <g:each in="${bomDetailInstanceList}" status="i" var="bomDetailInstance">
        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
            <td>${fieldValue(bean: bomDetailInstance, field: "serialNumber")}</td>
            <td><g:link controller="product" action="show" id="${bomDetailInstance?.product?.id}">${fieldValue(bean: bomDetailInstance, field: "product")}</g:link></td>
            <td>${fieldValue(bean: bomDetailInstance, field: "product.name")}</td>
            <td>${fieldValue(bean: bomDetailInstance, field: "product.standard")}</td>
            <td>${fieldValue(bean: bomDetailInstance, field: "dosage")}</td>
            <td><g:formatDate date="${bomDetailInstance.dateCreated}" /></td>
            <td><g:formatDate date="${bomDetailInstance.lastUpdated}" /></td>
        </tr>
    </g:each>
    </tbody>
</table>